package com.slmxz.tms.document.service;

import com.slmxz.tms.common.model.Option;
import com.slmxz.tms.document.model.entity.Driver;
import com.slmxz.tms.document.model.vo.DriverVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 司机信息服务类
 * @author sunyao
 * @Date 2024-11-09
 */
public interface DriverService extends IService<Driver> {

    /**
     *司机信息分页列表
     *
     * @return
     */
    IPage<DriverVO> selectDriverPage(IPage<DriverVO> page, DriverVO driver);


    List<Option<String>> selectOption(DriverVO driver);

    /**
     * @param id 司机信息ID
     * @return
     */
     DriverVO selectDriverDetail(Long id);

    /**
     * 新增司机信息
     * @return
     */
    boolean saveDriver(DriverVO driver) throws Exception;

    /**
     * 修改司机信息
     * @return
     */
    boolean updateDriver(DriverVO driver);

    /**
     * 删除司机信息
     *
     * @param ids 司机信息ID，多个以英文逗号(,)分割
     * @return
     */
    boolean deleteDrivers(String ids);

    /**
   * 激活或者注销
   * @return
   */
    boolean activeOrLogout(DriverVO driver);

}
